<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
  <div>
    <e-upload
      multiple
      type="drag-1"
      action="//jsonplaceholder.typicode.com/posts/">
      <div style="padding: 100px 0;">
        <p class="uploadtext">点击或将文件拖此处 或者 <a>点击上传</a></p>
      </div>
      <template v-slot:fileDetails="{file}">
        <div class="uploadInfo">
          <div>
            2022-10-14 15:00:00
          </div>
          <div>
            {{ Math.floor(file.size / 1024) }} k
          </div>
        </div>
      </template>
    </e-upload>
  </div>
</template>

<style>
.uploadInfo{
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999999;
  margin-top: 4px;
}
</style>
